package com.exercise.poly_;

public class poly01 {
    public static void main(String[] args) {
        Master master = new Master("蔡徐坤");
        Bone bone = new Bone("大骨头");
        Dog dog = new Dog("大黄");
        master.feed(dog,bone);
        System.out.println("==================");
        Cat cat = new Cat("泡芙");
        Fish fish = new Fish("大黄鱼");
        master.feed(cat,fish);
        System.out.println("======================");
        Animal animal = new Cat("小花");
        Food food = new Fish("虾米");
        master.feed(animal,food);
        System.out.println("===============");
        animal = new Dog("小黑子");
        food = new Bone("坤肉");
        master.feed(animal,food);
    }
}
